package com.mzj.saas.jobs.wallet.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mzj.saas.jobs.commons.IdEntity;

/*
*企业钱包表
 */
@Entity
@Table(name = "saas_wallet")
public class Wallet extends IdEntity {
	
	/**
	 * 企业id
	 */
    @Column(name = "org_id", nullable = true)
	private Long orgId;
	
	/**
	 * 资金存储位置：1企业商户号 2平台商户号
	 */
    @Column(name = "store_type", nullable = true)
	private Integer storeType; 
	
	/**
	 * 钱包总余额
	 */
    @Column(name = "balance_amount", nullable = true)
	private Integer balanceAmount; 
	
	/**
	 * 钱包可提现金额
	 */
    @Column(name = "usable_amount", nullable = true)
	private Integer usableAmount;
	
	/**
	 * 钱包缓冲期金额
	 */
    @Column(name = "buffer_amount", nullable = true)
	private Integer bufferAmount;
	
	/**
	 * 累计收入
	 */
    @Column(name = "total_amount", nullable = true)
	private Integer totalAmount;
	
	/**
	 * 累计提现金额
	 */
    @Column(name = "total_withdraw_amount", nullable = true)
	private Integer totalWithdrawAmount;
	
	/**
	 * 最后更新时间
	 */
    @Column(name = "last_update_time", nullable = true)
	private Date lastUpdateTime;

	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public Integer getStoreType() {
		return storeType;
	}

	public void setStoreType(Integer storeType) {
		this.storeType = storeType;
	}

	public Integer getBalanceAmount() {
		return balanceAmount;
	}

	public void setBalanceAmount(Integer balanceAmount) {
		this.balanceAmount = balanceAmount;
	}

	public Integer getUsableAmount() {
		return usableAmount;
	}

	public void setUsableAmount(Integer usableAmount) {
		this.usableAmount = usableAmount;
	}

	public Integer getBufferAmount() {
		return bufferAmount;
	}

	public void setBufferAmount(Integer bufferAmount) {
		this.bufferAmount = bufferAmount;
	}

	public Integer getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(Integer totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Integer getTotalWithdrawAmount() {
		return totalWithdrawAmount;
	}

	public void setTotalWithdrawAmount(Integer totalWithdrawAmount) {
		this.totalWithdrawAmount = totalWithdrawAmount;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
}
